//
//  YFCameraViewController.h
//  CamerDemo
//
//  Created by Winny Zhang on 2019/3/30.
//  Copyright © 2019 Winny Zhang. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface YFCameraViewController : UIViewController

/**
 录制视频最大秒数
 */
@property(nonatomic, assign) NSInteger maxSeconds;

/**
 只启用照相机
 */
@property (nonatomic, assign) BOOL isTakePhoto;

/**
 拍照或录制视频完成后回调
 */
@property (nonatomic, copy) void (^completion)(BOOL isImage, UIImage * _Nullable image, NSURL * _Nullable videoURL, UIImage * _Nullable videoFirstFrameImage, long long duration);

@end

NS_ASSUME_NONNULL_END
